package com.lanp.gencode.apifox;

import cn.hutool.core.util.StrUtil;
import com.lanp.gencode.utils.SiGoBeanUtil;
import lombok.Data;

/**
 * @author JiangPeng
 * Created with IntelliJ IDEA.
 * Description:  属性字段
 * Date: 2023-12-20 18:20:29
 */
@Data
public class Properties {
    protected String filed;
    protected String type;
    protected String title;

    public Properties(String filed, String type, String title) {
        //字段强制下划线
        this.filed = StrUtil.toUnderlineCase(filed);
        this.type = type;
        this.title = title;
    }

    public Properties(String type, String title) {
        this.type = type;
        this.title = title;
    }

    public String getFiled() {
        return filed;
    }

    public void setFiled(String filed) {
        this.filed = filed;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
